refactor & add ruby implementation of insertion sort