lesson1 dev OperationsTreeGenerator algorithm