recursive binaryCout function added