Vectorised matrix normalisation