Adding timer to compare pure python vs c versions.