Update wiring_shift.c

Remove branching logic from the looping code to increase performance.
Check for bad input on "bitOrder" parameter.