Adding service for dichotomic searching in an array