* small optimizations
* moved operations/* to algorithms