Implemented AA again with adaptive sampling. Some indexing bug is causing me much grief.