improved 1D reverse

If the 1D LUT is very small, resize to a bigger version for
calculations and then resize back on output. Additionally, if the
original LUT encompasses a greater input bound, make sure to have the
output LUT also encompass that bound by expanding it.

Closes #25
1D Reverse Tests