Search algorithm implementations in ruby for my Ooyala interview preparations.