scoring a sequence to a weight matrix