added heapSort and quickSort to TwoSum