Import collection lib from analyze-css

* add getLength() method
Use collection library
Merge pull request #330 from macbre/use-collection-module

Use collection library