seg fault should be fixed and the program will reOrder on a loop until the expression is completely simplified