Algebraic expression in tree form with algorith for finding best tree for given file with tuple: x - arg, y - arg, result