Create feat_funcs.py

More features & efficiency optimization needed