Heapify to rotate transfer (and working)