Updated greedy, added point in triangle