Update binaryTreeToArray.cpp

added parentIndex and childIndex relationship