Added BitOperationUtil class.
Fixed guard conditions.