Cohorts improvements

1. rewirte Cookies object, small and faster
2. remove unused functions(inChort, Util.size)
3. other minor changes to improve the performence