Fixed a CC bug related to the misuse of one functor. Finished testing script. Updated test code.
merged with master. resolved conflict in test_bc.cu