Add first matrix FFI impl