goal test for hill climbing
search algorithm interface