start of work for nelder mead / gram schmid test case