CS assignment sort program