Postgres Split Array Into Equal Sum Partitioning