began work on algorithm