hbase matrices implementation