added the LearningRule class

The new program design allows for interchangeable learning
algorithms (momentum, rprop, etc.).
import scipy.misc
added data module
fixed import for Python 3