algorithm: What sort algorithm is this?