Fixed typos in algs