getLocation function

Generic function to get the location of subsequences on the parent sequence