added euclidean update to the code (forgot about that)

- refactored sendDecayedScore as two function, one takes a current score
and computes euclidean update before multiplying with the new weight.
- sendDecayedScore(void) now assumes that the decay process continues,
the decay process is only restarted by sendDecayedScore(int).