added support for storing double arrays in a simple psql schema

added some vector manipulation functions in mem.