adding functions for max depth and finding node if it exists, also adding function to delete specific child of a node