bug fixed.

MaxHeap root change to 1 from 0, because using 0 as root is error prone.