added set for score matrix, added invalidation scheme