Refactoring DLX algorithm into a separate package.