Added hash fnuctions to Block class. Filter out patters we consider for inclusion that have frequency of 1 or more