removed accidental float->double conversions; added some memory debugging facilities; fixed minor bugs in rcp and queue