Topologies of Reasoning: Demystifying Chains, Trees, and Graphs of Thoughts