Bit.cpp - changed main with a proper tester