BinaryTreehdd

this code creates a binary tree while it outputs the elements and their indexes on the given file.