http://thisthread.blogspot.com/2014/03/greedy-algorithm-for-activity-selection.html