A simple printer queus using an array and sorted as a heaptree