title: Most efficient way to replace one sequence of the bytes with some other sequence
body: <p>What is the most efficient way to replace one sequence of the bytes (eg 67 67 67) with some other sequence of the bytes (eg 90). 
  The sequences can have different length.</p>