Shared memory accn calculation done. Need to fix crash when visualizing (no. of threads < 128).