DERBY-2699(performance of like in territory based collation databases may be improved by changing way collation elements are calculated.) Backporting to 10.9. Fix contributed by Knut Anders Hatlen