Implemented nonuniform with nan-padding and unit test.