sorted out

algorithms, approximately explained