Efficient training of Support Vector Machines in Java