Add naive algorithm