preparing for changing the multi-scan routine
debugged for compilation errors
1.Changed to use mgpu for multi-scan; 2. restructed main loop for bfs_enactor