- moved the extract variables method to algorithm utilities and
refactored it
- added unit tests for remove duplicates method and extract variables
method