Added caching using Guava cache

Added caching which can be configured using the primes.properties file