Add time primitive
Tweaks and cleanup
Add timing to insertion sort test