Code for Assignment 4: Binary Trees