Changed Bitv to uint to increase preformance and reduce memory footprint