computation of the permanent