add heap implement with array.