MeshBuilder class implemented but seg faulting if used, mesh pattern fixed