IPMS lab#2. K-medians and misc