Optimize item set transitions function further
Optimize parse item equality