Revised: HW1 timing

Hi Roger,

It seems that I have pulled to the wrong repo. I have revised my functions so that they are, hopefully, slightly faster. Could you time them sometime and check my submission format is OK? Thanks.