Starter code for heap and radix sort