Added BSON encoding
added bash script for comparing data size