replaced matrix java library