Fixed warnings for function max.

Hello,

I fixed warnings about the deprecated function max (used in NMF method). We should use maximum instead. Does the fix seem good to you ?

Bests.