linear algebra API implementation

It will work as soon as the next `core.matrix` release with linear algebra protocol changes will be published.