Made bin_data_1d() and bin_data_2d() double-precision

* Made bin_data_1d() and bin_data_2d() double-precision:
  * single-precision routines are now called bin_data_1d_sp() and bin_data_2d_sp(),
    and are wrappers for the double-precision versions