Changed to vectors in sumOfAllElements

Oskar, Erik. 20 minutes