chosing data structure for Eller's algo