Add exists method to Bucket class.

This pull request implements a new method for checking if a given key exists in a bucket.