This function mainly splits array into two and then calls bucketSort ( ) for two arrays .
static void sortMixed ( double [ ] arr , int n ) { List < Double > Neg = new List < Double > ( ) ; List < Double > Pos = new List < Double > ( ) ;