add insertion sort and change main.cpp to use pointers