first push of a faster, C-implemented melt function for data.frames -- R interface likely to change