Added the timer class to time measurements and added timing capabilities
with a map to the trace class
Finished initial profiler with profiling to files with percentages and
wthout percentages, also adds timer.