A set of extension collected from variety computer graphics apps
npm install cgtoolsA small set of extensions for common structures.prototype is used here and it might not work with other libs.
It is a lib for us :)
```
npm install --save cgtools
`js
require('cgtools')
[1,2,3].first() // returns 1
[1,2,3].last() // returns 3
[0,1,2,3,4,5].binaryIndexOfClosest(3.1) // returns 3
``