Added dot product to metrics.py