some new includes to track incoming features
hopcroft-karp max flow algorithm used in maximum matching