Move ArrayUtils to utils package
Replace recursive algo. by simpler iterative bottom up algo.