Just experimenting with MPI
Console result:
[Cluster] ID: 1 initialized
[Cluster] ID: 2 initialized
[Cluster] ID: 3 initialized
[Master] ID: 0 initialized, clusters: 3
[Master] ID: 0 fill value: 38 to array
[Master] ID: 0 fill value: 89 to array
[Master] ID: 0 fill value: 21 to array
[Master] ID: 0 fill value: 11 to array
[Master] ID: 0 fill value: 85 to array
[Master] ID: 0 fill value: 49 to array
[Master] ID: 0 fill value: 96 to array
[Master] ID: 0 fill value: 96 to array
[Master] ID: 0 fill value: 67 to array
[Master] ID: 0 fill value: 98 to array
[Master] ID: 0 fill value: 67 to array
[Master] ID: 0 fill value: 5 to array
[Master] ID: 0 fill value: 59 to array
[Master] ID: 0 fill value: 99 to array
[Master] ID: 0 fill value: 82 to array
[Master] ID: 0 fill value: 53 to array
[Master] ID: 0 fill value: 19 to array
[Master] ID: 0 fill value: 35 to array
[Master] ID: 0 fill value: 70 to array
[Master] ID: 0 fill value: 52 to array
[Master] ID: 0 fill value: 41 to array
[Master] ID: 0 fill value: 27 to array
[Master] ID: 0 fill value: 3 to array
[Master] ID: 0 fill value: 35 to array
[Master] ID: 0 fill value: 3 to array
[Master] ID: 0 fill value: 96 to array
[Master] ID: 0 fill value: 9 to array
[Master] ID: 0 fill value: 40 to array
[Master] ID: 0 fill value: 26 to array
[Master] ID: 0 fill value: 36 to array
[Master] ID: 0 fill value: 44 to array
[Master] ID: 0 fill value: 57 to array
[Master] ID: 0 fill value: 75 to array
[Master] ID: 0 fill value: 81 to array
[Master] ID: 0 fill value: 6 to array
[Master] ID: 0 fill value: 40 to array
[Master] ID: 0 fill value: 98 to array
[Master] ID: 0 fill value: 14 to array
[Master] ID: 0 fill value: 60 to array
[Master] ID: 0 fill value: 44 to array
[Master] ID: 0 fill value: 97 to array
[Master] ID: 0 fill value: 70 to array
[Master] ID: 0 fill value: 81 to array
[Master] ID: 0 fill value: 61 to array
[Master] ID: 0 fill value: 58 to array
[Master] ID: 0 fill value: 3 to array
[Master] ID: 0 fill value: 86 to array
[Master] ID: 0 fill value: 91 to array
[Master] ID: 0 fill value: 89 to array
[Master] ID: 0 fill value: 62 to array
[Master] ID: 0 fill value: 33 to array
[Master] ID: 0 fill value: 40 to array
[Master] ID: 0 fill value: 32 to array
[Master] ID: 0 fill value: 20 to array
[Master] ID: 0 fill value: 28 to array
[Master] ID: 0 fill value: 80 to array
[Master] ID: 0 fill value: 63 to array
[Master] ID: 0 fill value: 12 to array
[Master] ID: 0 fill value: 26 to array
[Master] ID: 0 fill value: 31 to array
[Master] ID: 0 fill value: 48 to array
[Master] ID: 0 fill value: 41 to array
[Master] ID: 0 fill value: 15 to array
[Master] ID: 0 fill value: 88 to array
[Master] ID: 0 fill value: 75 to array
[Master] ID: 0 fill value: 99 to array
[Master] ID: 0 fill value: 62 to array
[Master] ID: 0 fill value: 82 to array
[Master] ID: 0 fill value: 77 to array
[Master] ID: 0 fill value: 72 to array
[Master] ID: 0 fill value: 97 to array
[Master] ID: 0 fill value: 66 to array
[Master] ID: 0 fill value: 42 to array
[Master] ID: 0 fill value: 56 to array
[Master] ID: 0 fill value: 21 to array
[Master] ID: 0 fill value: 2 to array
[Master] ID: 0 fill value: 16 to array
[Master] ID: 0 fill value: 46 to array
[Master] ID: 0 fill value: 71 to array
[Master] ID: 0 fill value: 70 to array
[Master] ID: 0 fill value: 39 to array
[Master] ID: 0 fill value: 73 to array
[Master] ID: 0 fill value: 8 to array
[Master] ID: 0 fill value: 93 to array
[Master] ID: 0 fill value: 62 to array
[Master] ID: 0 fill value: 77 to array
[Master] ID: 0 fill value: 45 to array
[Master] ID: 0 fill value: 41 to array
[Master] ID: 0 fill value: 7 to array
[Master] ID: 0 fill value: 88 to array
[Master] ID: 0 fill value: 28 to array
[Master] ID: 0 fill value: 72 to array
[Master] ID: 0 fill value: 12 to array
[Master] ID: 0 fill value: 59 to array
[Master] ID: 0 fill value: 17 to array
[Master] ID: 0 fill value: 17 to array
[Master] ID: 0 fill value: 4 to array
[Master] ID: 0 fill value: 10 to array
[Master] ID: 0 fill value: 58 to array
[Master] ID: 0 fill value: 81 to array
----- [Start sorting with Clusters: 3] -----
[Info] TaskPerProcess: 33 | taskRemainder: 1
[debug] send size: 33
[debug] send size: 33
[debug] send size: 34
[Master] ID: 0 before sort: 38
[Master] ID: 0 before sort: 89
[Master] ID: 0 before sort: 21
[Master] ID: 0 before sort: 11
[Master] ID: 0 before sort: 85
[Master] ID: 0 before sort: 49
[Master] ID: 0 before sort: 96
[Master] ID: 0 before sort: 96
[Master] ID: 0 before sort: 67
[Master] ID: 0 before sort: 98
[Master] ID: 0 before sort: 67
[Master] ID: 0 before sort: 5
[Master] ID: 0 before sort: 59
[Master] ID: 0 before sort: 99
[Master] ID: 0 before sort: 82
[Master] ID: 0 before sort: 53
[Master] ID: 0 before sort: 19
[Master] ID: 0 before sort: 35
[Master] ID: 0 before sort: 70
[Master] ID: 0 before sort: 52
[Master] ID: 0 before sort: 41
[Master] ID: 0 before sort: 27
[Master] ID: 0 before sort: 3
[Master] ID: 0 before sort: 35
[Master] ID: 0 before sort: 3
[Master] ID: 0 before sort: 96
[Master] ID: 0 before sort: 9
[Master] ID: 0 before sort: 40
[Master] ID: 0 before sort: 26
[Master] ID: 0 before sort: 36
[Master] ID: 0 before sort: 44
[Master] ID: 0 before sort: 57
[Master] ID: 0 before sort: 75
[Master] ID: 0 before sort: 81
[Master] ID: 0 before sort: 6
[Master] ID: 0 before sort: 40
[Master] ID: 0 before sort: 98
[Master] ID: 0 before sort: 14
[Master] ID: 0 before sort: 60
[Master] ID: 0 before sort: 44
[Master] ID: 0 before sort: 97
[Master] ID: 0 before sort: 70
[Master] ID: 0 before sort: 81
[Master] ID: 0 before sort: 61
[Master] ID: 0 before sort: 58
[Master] ID: 0 before sort: 3
[Master] ID: 0 before sort: 86
[Master] ID: 0 before sort: 91
[Master] ID: 0 before sort: 89
[Master] ID: 0 before sort: 62
[Master] ID: 0 before sort: 33
[Master] ID: 0 before sort: 40
[Master] ID: 0 before sort: 32
[Master] ID: 0 before sort: 20
[Master] ID: 0 before sort: 28
[Master] ID: 0 before sort: 80
[Master] ID: 0 before sort: 63
[Master] ID: 0 before sort: 12
[Master] ID: 0 before sort: 26
[Master] ID: 0 before sort: 31
[Master] ID: 0 before sort: 48
[Master] ID: 0 before sort: 41
[Master] ID: 0 before sort: 15
[Master] ID: 0 before sort: 88
[Master] ID: 0 before sort: 75
[Master] ID: 0 before sort: 99
[Master] ID: 0 before sort: 62
[Master] ID: 0 before sort: 82
[Master] ID: 0 before sort: 77
[Master] ID: 0 before sort: 72
[Master] ID: 0 before sort: 97
[Master] ID: 0 before sort: 66
[Master] ID: 0 before sort: 42
[Master] ID: 0 before sort: 56
[Master] ID: 0 before sort: 21
[Master] ID: 0 before sort: 2
[Master] ID: 0 before sort: 16
[Master] ID: 0 before sort: 46
[Master] ID: 0 before sort: 71
[Master] ID: 0 before sort: 70
[Master] ID: 0 before sort: 39
[Master] ID: 0 before sort: 73
[Master] ID: 0 before sort: 8
[Master] ID: 0 before sort: 93
[Master] ID: 0 before sort: 62
[Master] ID: 0 before sort: 77
[Master] ID: 0 before sort: 45
[Master] ID: 0 before sort: 41
[Master] ID: 0 before sort: 7
[Master] ID: 0 before sort: 88
[Master] ID: 0 before sort: 28
[Master] ID: 0 before sort: 72
[Master] ID: 0 before sort: 12
[Master] ID: 0 before sort: 59
[Master] ID: 0 before sort: 17
[Master] ID: 0 before sort: 17
[Master] ID: 0 before sort: 4
[Master] ID: 0 before sort: 10
[Master] ID: 0 before sort: 58
[Master] ID: 0 before sort: 81
[Master] ID: 0 recv size: 33 from ClusterID: 1
[Master] ID: 0 recv size: 33 from ClusterID: 2
[Master] ID: 0 recv size: 34 from ClusterID: 3
----------[Results]----------
--[Result from Cluster ID: 1]--
Sorted value: 3
Sorted value: 3
Sorted value: 5
Sorted value: 9
Sorted value: 11
Sorted value: 19
Sorted value: 21
Sorted value: 26
Sorted value: 27
Sorted value: 35
Sorted value: 35
Sorted value: 36
Sorted value: 38
Sorted value: 40
Sorted value: 41
Sorted value: 44
Sorted value: 49
Sorted value: 52
Sorted value: 53
Sorted value: 57
Sorted value: 59
Sorted value: 67
Sorted value: 67
Sorted value: 70
Sorted value: 75
Sorted value: 82
Sorted value: 85
Sorted value: 89
Sorted value: 96
Sorted value: 96
Sorted value: 96
Sorted value: 98
Sorted value: 99
--[Result from Cluster ID: 2]--
Sorted value: 3
Sorted value: 6
Sorted value: 12
Sorted value: 14
Sorted value: 15
Sorted value: 20
Sorted value: 26
Sorted value: 28
Sorted value: 31
Sorted value: 32
Sorted value: 33
Sorted value: 40
Sorted value: 40
Sorted value: 41
Sorted value: 44
Sorted value: 48
Sorted value: 58
Sorted value: 60
Sorted value: 61
Sorted value: 62
Sorted value: 63
Sorted value: 70
Sorted value: 75
Sorted value: 80
Sorted value: 81
Sorted value: 81
Sorted value: 86
Sorted value: 88
Sorted value: 89
Sorted value: 91
Sorted value: 97
Sorted value: 98
Sorted value: 99
--[Result from Cluster ID: 3]--
Sorted value: 2
Sorted value: 4
Sorted value: 7
Sorted value: 8
Sorted value: 10
Sorted value: 12
Sorted value: 16
Sorted value: 17
Sorted value: 17
Sorted value: 21
Sorted value: 28
Sorted value: 39
Sorted value: 41
Sorted value: 42
Sorted value: 45
Sorted value: 46
Sorted value: 56
Sorted value: 58
Sorted value: 59
Sorted value: 62
Sorted value: 62
Sorted value: 66
Sorted value: 70
Sorted value: 71
Sorted value: 72
Sorted value: 72
Sorted value: 73
Sorted value: 77
Sorted value: 77
Sorted value: 81
Sorted value: 82
Sorted value: 88
Sorted value: 93
Sorted value: 97