Java based API for Matrix operations