heap sort & tcpip socket