A stand-alone version of the jet clustering algorithms used for the STAR experiment