Add c extension for inner loop

It crashed when I added the code into reflmodule directly, but this
works and doesn't seem too invasive. The only downside is there are two
pyd files...