Add CTF socket helper class
Add solution to plaid 2014 kappa-275