Trim  2sum script, removing unnecessary checks, hashes and print statements.
Added median stream calculating