heapsort, permutations and linkedlist added