Updated My5Heap class and resolve #4

`next-1` should be used instead of `--size` because `next-1` points to the last non-empty array position, while `--size` points to the last position in the array which might be empty.