Implement incomplete subtree function