Normalizes a matrix
The arguments src and dest can be the same value.
src
dest
the source matrix
the destination matrix