Added code for using an unlimited number of hash functions.
Also, deleted redundant code and un needed gpu memory allocations.