Make reshaper more robust and more compact using np.ndindex
Merge pull request #6 from hadim/master

Make reshaper more robust and more compact using np.ndindex