Fixed issue of adding nodes with the same size by sorting the tree by address.
Made it so if they try to free an invalid address, the program exits (as specified
by the instructions)