Using <<1 instead of *2 to save cpu cycles