Project 2 Connections on permutation graphs. Usage python ProblemaP2.py < smallCases.in > smallCases.out