code for space filling curve added as case 4