Supervised Dictionary Learning