Reading entire file into bit array at beginning