2x perf improvement in alignment using binary maxheap instead of stack