add bit positions solution