Added binary searh for an array function