computing the multiplicity sequence of an ideal