mongo script for sum up array aggregate