Tri-nary tree implementation

just for kicks :)