Working A* combined with a faster version of the main program made by Sverrir.