ruby insterion sort