add initial support for selection sort