faster and improved version of dd
