Created matrix of words