Solutions to questions posted by David// CSC-148 for review.
List of questions: http://imgur.com/xzddZ3o
The first number of a file is the function number corresponding to the list on the image.
I pick helper functions over the probably more elegant while loops.
Let me know or send a pull request if you find mistakes! :)
NOTE ::::: FOR DEPTH functions I USE 0 AS ROOT node ::::