Verification: works with 3gons

used the indexing system shown in the problem description. gets the
right answer in no time at all. for 5gons will have different indexing
Final

Gets the right answer oh yeah. Also, patterns:

2 5 9 4 9 3 6 3 7 8 7 1 10 1 5
2 9 5 10 5 1 8 1 7 6 7 3 4 3 9
6 3 5 7 5 2 8 2 4 9 4 1 10 1 3
6 5 3 10 3 1 9 1 4 8 4 2 7 2 5