added multiplicity function for use with a hashed point list