added code for factorial and insertion sort time comparisson