Turn an array into a binary tree. Before compiling.