running time improvement for hill climbing task
Several changes to HC to make it faster by using tree maps