added portable selection sort. modified template to serve as an abstract
class for sort algo classes