Linear algebra classes for 3D