 //
 
 import Foundation
-class BitArray {
+public class BitArray {
 	
 	let UIntInBits : UInt64 = UInt64(MemoryLayout<UInt64>.size * 8)
 	

		mask = mask & intval
		return mask != 0
	}
	func setBit(nr : UInt64, value : Bool) {
		
		let (intIndex,bitIndex) = Index(bitnr: nr)
		let mask : UInt64 = UInt64(1) << UInt64(bitIndex)

		return (intindex, bitIndex)
	}
	
	public func getBit(nr : UInt64) -> Bool {
		
		let (intIndex,bitIndex) = Index(bitnr: nr)
		let intval = bitarr[Int(intIndex)]
