[#94] Fixed bug when INSERT has the wrong type.
[#94] Added better bench test

Using distance formula