Adds implementation of Selection sort related to 2.2-2.