Unified Functional Hashing in Automatic Machine Learning