 //
 
 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)

	private (set) var countInts : UInt64 = 0
	var bitarr : [UInt64] = []

	public init(count:UInt64, initval : Bool = false) {
		
		self.count = count
		self.countInts = self.count / UIntInBits + 1
