Minimize swaps to ensure all families on a plane sit in adjacent seats.