bit manipulation programs implemented