Learning Supervised PageRank with Gradient-Based and Gradient-Free Optimization Methods