US25-CodeReview for all packages

Refactor classes for both algorithms and create Validator class