added bit shifting method to Util