High performance kernel smoothing library for biomedical imaging