minor improvements in first post. Added second post on linear regression topic. Vectorized implementation