Network Effects in NBA Teams: Observations and Algorithms