Implemented force calculations and shared memory force calculations