Output Tree structure Implemented

Also recursive encryption implemented, decryption implemented but
untried.