add another function getComplementArray method