Add implementation and tests for SCAN
Fix for SCAN: generate at least keyCount 1
Merge pull request #13 from dmkc/feature/scan

Add implementation and tests for SCAN