BinaryTreeHeight Function to get the height of a binary tree given in the form of a one dimensional array