• negative gradient of GaussClass() was wrong, spotted by Kao Lin