Data source: http://rosettacode.org/wiki/Dot_product
