MAGIC variance reduction

I added the MAGIC variance reduction technique to variancereduction.py. @makeclean, you should review the method. Tests were also added.

Theory manual addition still needed.

issue #344
I'll change the default tolerance. I probably should have asked what a reasonable value was in the first place because I have no clue.