Scientists claim slam-dunk with new sports analysis software