Added sample weight support to confusion matrix.

Added a sample_weight parameter inside confusion_matrix which
will be used to build the confusion matrix. If not present, it
will default to np.ones() of size equal to the number of samples.
Tests were created in test_classification.py instead of
test_common.py.
That's definitely better. I was influenced by the tests around it which had hard-coded values as well. Thank you for the feedback! Will push a commit shortly.