Update InMemoryLinkDatabase.java

Added String type to the hashset. Now the project compiles on Java 8.