building cell class of alignment matrix