provides the shortHash method as instructed
fixed and interactive tests of shortHash method
write up 5.1 Hash function