Modified the solve function in MathUtil.pm to account for negative numbers.
Added tests to Calculate.t