fix bug with sum, ruby should really have a sum_if method
Merge pull request #200 from tablexi/bug-order-of-operations

fix bug with sum, ruby should really have a sum_if method