A Postgres extension with various functions that compute statistics on arrays of numbers