add dot and norm functions