Added point compression and decompression functions (for issue #2).