I wanted to check how much faster a C version would be. As it turns out
it is *MUCH* faster, the python version takes ca. 12s, the C version
takes a few milliseconds.
interesting discoveries:
* using a list instead of a dict made a difference, but not a lot
* declaring the code in a function instead of as "global code" made *A
LOT* of difference. I guess it has to do with the variables being
global in that case