Replace CryptoNight hash functions