Implement first version of greedy pebbling