completed oneVsAll function to calculate thetas
completed one versus all prediction