Adding new binarize function