first real results. learning rate, test set

added learning rate and splitting into the test set, one additional
helper method.

first commit where the algorithm seems to be able to detect the
character, must fix cost function and add more examples for further
testing