Isolate code from sklearn for normalization of a two-dimensional matrix as used [here](https://github.com/georgid/AlignmentDuration/blob/production_no_melody/src/align/Decoder.py#L276) I tried to copy the sklearn method [here](https://github.com/georgid/AlignmentDuration/commit/c4e7b99d88d3aeb91a3aeecaf4915e738ac4c404) but did not have time to finish, because it has also some code for checking the validity of the matrix, which is not needed. This normalization could be also rewritten in C++.