Feature/optimizedmatrix

The very basic alpha version of (parts of) the new optimized Matrix2 API with TypedPipe.