Add LCD and Prob algorithms