refartored recursive binary tree functions (remove still broken)