added bit manipulating functions

Added functions for determining the first zero bit in a number.