4 dimensional linear algebra