Implemented Uniform Cost