Just refactored code a bit
Implemented a prototype for linkcell algo in 3D