Small fix in resampling test.
Cleanup in resample_img.

Added tests, reorganized code in resample_img.
Optimized memory usage for resample_img()

The original resample_img used np.concatenate, which caused the memory usage
to double shortly before leaving the function. This is not the case anymore.

The execution time is slightly shorter (of the order of 5%).

Added an "order" keyword to resample_img.