Refactor to improve S52 LUP/Lookup performance.
(cherry picked from commit 02d33aeed61c5949d9a98b60dd5dfe56c73eb6ac)

Conflicts:
	src/s52plib.cpp
Improve S57 overlay cell logic performance
(cherry picked from commit b3737cc17242e40bba4add107af3848465634e5e)

Conflicts:
	src/Quilt.cpp