Began work on the depth based nested search through list