essaMEM is an algorithm for calculating maximal exact matches using enhanced sparse suffix arrays