Make element-wise unary operators more consitent with Torch.

Added version with two arguments of many unary operators to allow not-in-place
operations.
Made 'sign' and 'pow' operator resize the target tensor if necessary.
Added tests for all operators.
Merge pull request #40 from dominikgrewe/unary_op

Make element-wise unary operators more consistent with Torch.