added three private tasks (work still in progress)
added tests timeouts
fixed overflow problems
added a comment with description of alternative solution
refactoring
refactoring, extra test for edge case added
refactoring
alternative solution description updated