On Vector Partition Functions