Added new structures and functions: read_file, merge_node, merge_lstack, build_tree. Loci list generation in 'merge_node' is still to be implemented. Nothing tested yet.