added polynomial kernel and adaptive p testing.