latex algorithmic input output