Implement REHASH command