Add gaussian method and tests.