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 think this line should be the only difference between the "total" case and the standard case. The rest of this if/else should be combined.