Java implementation of Count-Min sketch for finding frequency of events in a stream of data within specified error bounds