Adding code for soft margin hyperplane