Impl the maxHeapSequency and the minHeapSequency

Implement the maxHeapSequency and the minHeapSequency
Also add a test project.