Added more matrix operators, generalized tensorProduct