source code of some commen algrithem of sort