Fixed Uniform cost search for finding best path