some helper added, offset fixed when Array#filter is not available.
offset test added.
refactoring.
match function fully implemented.
tests refactoring.