commit generalized pattern search optimizer

first commit, still has some debug stuff left in it, but it works well.
fake noisy instrument used for optimization testing
misc commit