HW5:task1: added constructor of 2 parameters in base MathNode class; solved memory leak in test