Heap sorter for FPGA