added binary search to Dynamic Array