renamed CoreMatrixFactory to MatrixFactory and added FloatBuffer support