Revert "First task - minimal distance"

This reverts commit ae18f6c9490c77e91905c7b34bc3dfe90a167736.