General purpose well to lesser known algorithms in Javascript