implemented simple piecewise linear solver and one diode test