Add monitor to planning

o add a Monitor that keeps track of how long time each stage Cypher compiler takes
Add cache monitoring