Update ManhattanHeuristic.java

The algorithm was incorrect. It works as expected now.
Merge pull request #218 from ebbybeh/patch-1

Fixed a bug in ManhattanHeuristic.