Moved cpu_time to timing
Moved locative handling to separate file
Moved all the rest functions from runtime.c