Porting to ./algorithms completed
Fixes
Merge branch 'kspectrum-fix'