Create timesthree.cpp

Return the popcount of the number times three. The number is given by the positions of its 1-bits.