more accurate name for last swapping algorithms is best first search