fixed major bug with the insertion sort algorithm making it put events in in the wrong order, added a profiling testcase
fixed major bug with the insertion sort algorithm making it put events in in the wrong order, added a profiling testcase