Added training data. Added code for binarization.