Fixed strange diffs in algorithms