Implementation of a non-deterministic optical noiseless amplifier