added new sorting interface
added makefile for sorting (emre)