Compiling, but inefficient and messy version of call graph
Add properly working call graph heuristic