calculating protein mass, shared motif