modify common prefix algorithm
Merge branch 'master' of github.com:huzelin/emdb