Modified not to clone if the number of paths is 1.
Modified to explore shallower at the early stage.
Modified to return random direction when the direction is undeterminant.
Merged master branch.