Changed pipe size limit and decided to print answers right away so as not to store them in memory