Stuff from effort to use bitwise operators to implement Hungarian algorithm