Testing hill climbing algorithm