added greedy algorithm
added greedy and random algorithm