Finished Optimising for GDM training FN

Yeah so it works and returns the optimised function and parameters for
each topology.

However I noticed that I had cell arrays which would have empty cells
for the confusion matrix. so this problem makes my function incomplete