Algorithm works perfectly fine! no tests were done yet