added normalize function which allows to call le/ge/... with negative weights, added additional tests