Added comparison functions for Nullable type
Addressed review comments