Extended 'crop' and 'drop' to n-dimensional arrays