Selective Repeat ARQ implementation (Semestral project)