Made Node trait generic over both input and output sample types