RUDP Segment enhanced, tested, and memory debugged with Valgrind