Quick search algorithm implementation

Quick search implementation in C#