fix a bug in L2 regularization
Remove dependency to kernlab package by copying function ipop
perform few simpifications in loqo