Added genDataMatrix, genDataMatrix