Java code to cluster genes based on expression patterns