Investigation of Team Formation in Dynamic Social Networks