Utility methods for bitboard manipulation in java