sports analytics algorithm