A Method of Learning the Kernel Using the Alignment