Changed block occlusion algorithm to use LUT computed at runtime. Also changed MapServer class to singleton pattern.