[MLLIB] use Iterator.fill instead of Array.fill

Iterator.fill uses less memory