my implementation of normpdf