Enable AMR data structure

Enabling AMR data structure complete! The new Tree structure works
well and the 1D tests have been passed.