Implementation of Hill Climbing Algorithm in JAVA