Gravar-mail: Learning a Kernel Matrix Using Some Similar and Dissimilar pairs