By pre-computing the value of prior probability of motif occurance in the sequences, for fixed i,j and delta, reduced the cubic time complexity of the algorithm ine each iteration of EM to quadratic