Implemented insertionsort, mergesort, selection and bubblsort.