fix random choose error when row-cost equals col-cost
when row-partition cost equals col-partition cost, we consider the node
later and let the other nodes choose partition first.
change tiling choice to row when row-cost equals col-cost
Merge pull request #191 from MaggieQi/master

fix random choose error when row-cost equals col-cost