An efficient kernel algorithm for rare target detection and unbalanced classification