normalize2 function

Convert numeric vector min to 0, max to maxvalue