Added getheader method and implemented a three way quicksort partitioning that's not quite perfect