Worked on generate function, and hill climbing algorithm.