Implementation of problem searching tree algorithm complete