fixed infinite looping bug in linear_assignment caused by floating point
instability