Moved hash function below intersect
Added bitcount & completed intersection

Added a function to count bits in a 32-bit char, and completed the
intersection function