Added generic 'diamond' cluster function that uses the generic 'cluster' function.