Refactor add method of ordered list