Reshape fixes

This PR brings changes to nn.Reshape:
 * uses torch.view
 * reuses previously allocated memory for non-contiguous inputs and gradOutputs (still doesn't copy memory otherwise)
 * handles corner-case (fixes #55)
 * adds a unit test (there was none)