Flexible and Efficient Algorithms for Abelian Matching in Genome Sequence