added tests.hs. dotProd also compiles.