implementation of getting unvisited vertex which has least cost to
travel there