Improving Link Prediction Algorithms in Complex Networks