Fixed an indexing error in generateCPU.cc. Put block boundaries for shared memory access in sparse connectivity.