parse_solution_terms function

Parse solution expression into individual terms