Mipf function

Iterative proportional fitting from matrix input