infix version of the deriv code

with simplify method stolen from bill the lizard