some pattern recognition & machine learning practice work