Updated/added some algorithms
Renamed variable