Algorithm.txt: My initial algorithm design (unlikely to change)