recursive to find the mid of the array
stack and queue(java linkedlist)
note the diff of index between inorder and postorder