proper tabbing
accepted faster solution

use bit pattern, reduce time
output files from old and new versions