Yes! Found a java implementation (and edited it to be more accurate)