Merging code from shruti's new-branch
Removed warnings in the copy fill and generate test cases.
Added serial and multicore CPU code paths for copy fill and generate routines.