Added some more usful functions

* some
* rest
* distinct