Greedy, A* and IDA* completed, with minor fixes to other algorithms