tau_dcmotor ver 3

updated so that it can take an array of inputs and outputs and array of
same size