Introduced Key module in order to abstract the type of table keys.
Fixed #7 gh issue.