Added nelder_mead simplex search algorithm and corresponding tests.