For DynamicArray, fix the 64bit and new compiler issue.
For BinaryHeap, fix the 64bit and new compiler issue