Fixing stuff

Fixed Generator and Insertion sort.