gaussian kernel calculation and optimum parameter selection functions implemented and submitted.