Added timePerItem fucntion

timePerItem calculates the average amount of time taken per test item.
Initial version

geometry.py contains various geometical functions for triangles.