Rejection smapling for normal distribution implemented.