Some improvement for multiclass confidences

- Changed the way confidences are stored (array of sgvectors -> sgmatrix)

- Added a unit test for confidences