HashArray continued, compare function implemented
TODO: HashArray merge