Squeezing a tensor (removing all 1-dimension axes)