added bit manipulation question and some util methods