timestamp, heapsort, init added