Added catch function into build model that handles any unlucky kernel matricies that aren't PSD.