Implemented a simple reshape function
Merge pull request #136 from izaid/reshape

This PR adds a very basic reshape function, which is useful for testing.