started working on the rehash function

I thought of it as very similar to the operator<< but only time will tell