Fix for double free in KdTreeFLANN after copy operation #335.

This fix changes the float *cloud_ pointer into a boost::shared_array structure, and substitutes malloc/free with new[]/delete[] operators.