Array implementation of a binary tree