Changing point multiplication to double-and-add