Added another greedy algo