Fixing the second level rewriting.
Bug in deeper rewriting resolved. Fitler1 test passes successfully.
Parent and child components of a filter are changed to list of symbols instead of alternates to avoid future modifications.
Compilation errors fixed.
hashcode method added to Alternate so that hashsets behave properly. Should be modified to a better hash function. later