Some (discrete) search algorithms implemented in Scala