improved time performance by using a double linked list insted of an array for the crossings, also the threshold of the input image is done in order to make fair comparison (of time) with previous version