[WIP] extracting learning rates to learning_rates.pxd and learning_rates.pyx

This pull request is for #3647
@agramfort Is it alright to allocate memory in this way?