algorithm optimization

- generate first list better
- learn algorithm about 11 | A B situation