Update geometry.py

Matrix to array changes were made, necessitating the use of scipy.dot