fixed OneTimeDeque to use hash and eq functions supplied by user