completed ghost cell edge cell calculation (added j/k loops)