[Chapter 6] simple smo algorithm