Add contains check.
updated containment checks
Implemented first split.