add modules and bundle file

if your mode function requires the input to be sorted you should probably sort it in the mode function.