Added searchMinGreaterValue function

Addition of function 6.