Add heap sort, some fixes to the library
Add test