algorithm.txt: my initial solution design