Jim Hamilton felt Scotland's good work in the scrum paved the way for their 12-8 Six Nations victory over Ireland at Murrayfield on Sunday.