What should be the smallest minimum distance of a code if it can detect up to 7 errors?