Added Prefixes and Suffixes matrixes computation