Corrected some Errors in Topology Search code.
Corrected some Errors in Topology Search code.

This code need some serious generalization.
ngcrawford/CloudForest,ngcrawford/CloudForest,ngcrawford/CloudForest,jonchang/CloudForest,ngcrawford/CloudForest,jonchang/CloudForest,jonchang/CloudForest,ngcrawford/CloudForest,jonchang/CloudForest