Fixed sequence algorithm

Closes https://github.com/PistonDevelopers/rust-event/issues/50
Merge pull request #51 from bvssvni/master

Fixed sequence algorithm