replace float types w/double and add euclidean distance fn.