1. Move common functions to utility.py
2. Initial code for SVM.