A tool implementing a flexible MRI brain tissue classification framework