after parsing polish notation iterate through structure and solve equation