working. fixed some warnings in old programs. add sort program