A java machine of matrix calculation