greedy caching algorithm

Working code for the greedy forwarding algorithm. Class Structure might
change to suit for other caching algorithms