changed built-in sorting to my own implementation of quicksort, which makes chrome and firefox compute A* the same way
fixed bugs