Application of Greedy Algorithm in Greedy Treasure Hunter