heap sort kata 2