prepare_data function

Prepare data for consensus clustering