Add comments to heapsort and adjust code style