Changed a_assign to check if a (c,lec) pair existed in a different
session. This prevents any duplicate (c,lec) assigns.