[Chapter 6] full smo algorithm