Replace to array list

https://github.com/whyi/SketchFormer/issues/15
Prework for #14 : Replace array with arraylist