Added timing code to my implementation