This extends GiST's support for nearest-neighbor searches to many of the standard data types. Teodor Sigaev