Fundamental operations for lists and custom functions to replace built-in list library