CS - algorithms updated