An implementation of the STAR biodiversity metric