workign matrix binary search added