maximum function

New generic for maximum of two matrix distributions