Fix error messages.
Implement search (DoubleArray).