Created userlib

userlib contains common functions that may be used in c programs.