Source code of an article on finding bottleneck