added 3d for the border elements obtain, and solved bugs in paralelization fo the reading of the elements