Add invert and tests
Add indexOf
Add from index to indexOf
Remove unused declarations