Some basic linear algebra and stuff