Test DIRECT search algorithm