linear algebra protocols and stub implementations added