optimized algorithm by reading in a whole chunk at a time in contrast to reading in a number at a time