[WIP] Iterative algorithm for bundler resolve
Handled Cyclic dependcies errors correctly
If no version is found for the current gem and its not a root level requirement then try different version gem of its parent
Fixed a bug where backtracking didn't work correctly
Added a fix for multiple level conflict resolution
Added a fix to handle conflict on a child with specs
Added a fix to handle when no state are found for the current parent
Added debug statements
Removed uneeded code
Added comments for better understanding few of the methods
Added a fix to raise version_conflict if a children dependency is not resolved
Delegate the responsiblity of raising version_conflict error to resolve_for_conflict method
Refactored duplicate code by puting it into a method
Print out the depedency tree in case of version_conflict in a child dependency
Rename the method to dependency_tree instead of print_dependency_tree
Don't add into states if no version of the gem is found
Remove not necessary false
Merge pull request #2726 from Who828/master

Implemented an iterative version of Bundler's dependency resolving algorithm
refactor output capture tests
Fixed a failing spec because of DEBUG_RESOLVER_TREE