Added contains() method

This is a much faster way of checking if a given key exists in the cache