Untangling the great contract net