less operations for sum of array
add in a time difference solution
Merge pull request #3 from rhysbrettbowen/master

less operations for add one to each array