Changes test and makes it run a real algorithm
l-trap tested