So after some time I really found a question that matches mine
except it's asking in R and the only answer is not really satisfying for me. By now I came to terms that I will have to implement an algorithm myself, one that would fit the question heading. So my question is, should I post it as an answer or rather leave it be? Or do you think I may should ask my own question in my programming language, hope that a solution comes along and if not post my solution?