Implemented the helper function allocate_to_dimensions.
Implemented the helper function allocate_to_dimensions.

ajose01/rethinkdb,ajose01/rethinkdb,Qinusty/rethinkdb,nviennot/rethinkdb,niieani/rethinkdb,urandu/rethinkdb,urandu/rethinkdb,AtnNn/rethinkdb,wkennington/rethinkdb,AtnNn/rethinkdb,bchavez/rethinkdb,bchavez/rethinkdb,AntouanK/rethinkdb,gavioto/rethinkdb,yaolinz/rethinkdb,matthaywardwebdesign/rethinkdb,jesseditson/rethinkdb,jmptrader/rethinkdb,jesseditson/rethinkdb,sbusso/rethinkdb,mbroadst/rethinkdb,wujf/rethinkdb,wkennington/rethinkdb,grandquista/rethinkdb,yaolinz/rethinkdb,spblightadv/rethinkdb,KSanthanam/rethinkdb,dparnell/rethinkdb,catroot/rethinkdb,gdi2290/rethinkdb,mcanthony/rethinkdb,matthaywardwebdesign/rethinkdb,scripni/rethinkdb,wkennington/rethinkdb,jmptrader/rethinkdb,eliangidoni/rethinkdb,marshall007/rethinkdb,mquandalle/rethinkdb,catroot/rethinkdb,elkingtonmcb/rethinkdb,eliangidoni/rethinkdb,RubenKelevra/rethinkdb,alash3al/rethinkdb,mcanthony/rethinkdb,ajose01/rethinkdb,marshall007/rethinkdb,RubenKelevra/rethinkdb,sontek/rethinkdb,gavioto/rethinkdb,pap/rethinkdb,eliangidoni/rethinkdb,losywee/rethinkdb,losywee/rethinkdb,alash3al/rethinkdb,grandquista/rethinkdb,Wilbeibi/rethinkdb,KSanthanam/rethinkdb,urandu/rethinkdb,bpradipt/rethinkdb,scripni/rethinkdb,grandquista/rethinkdb,rrampage/rethinkdb,gavioto/rethinkdb,niieani/rethinkdb,spblightadv/rethinkdb,nviennot/rethinkdb,urandu/rethinkdb,victorbriz/rethinkdb,scripni/rethinkdb,losywee/rethinkdb,sontek/rethinkdb,bchavez/rethinkdb,catroot/rethinkdb,wojons/rethinkdb,RubenKelevra/rethinkdb,grandquista/rethinkdb,grandquista/rethinkdb,nviennot/rethinkdb,KSanthanam/rethinkdb,elkingtonmcb/rethinkdb,Wilbeibi/rethinkdb,bchavez/rethinkdb,jmptrader/rethinkdb,nviennot/rethinkdb,niieani/rethinkdb,tempbottle/rethinkdb,gdi2290/rethinkdb,lenstr/rethinkdb,sbusso/rethinkdb,rrampage/rethinkdb,matthaywardwebdesign/rethinkdb,wkennington/rethinkdb,tempbottle/rethinkdb,jmptrader/rethinkdb,AtnNn/rethinkdb,AtnNn/rethinkdb,bchavez/rethinkdb,ayumilong/rethinkdb,greyhwndz/rethinkdb,AntouanK/rethinkdb,bpradipt/rethinkdb,captainpete/rethinkdb,eliangidoni/rethinkdb,RubenKelevra/rethinkdb,wujf/rethinkdb,4talesa/rethinkdb,captainpete/rethinkdb,robertjpayne/rethinkdb,bpradipt/rethinkdb,jfriedly/rethinkdb,lenstr/rethinkdb,losywee/rethinkdb,bchavez/rethinkdb,AntouanK/rethinkdb,elkingtonmcb/rethinkdb,scripni/rethinkdb,dparnell/rethinkdb,yakovenkodenis/rethinkdb,sebadiaz/rethinkdb,gavioto/rethinkdb,wojons/rethinkdb,victorbriz/rethinkdb,tempbottle/rethinkdb,Qinusty/rethinkdb,tempbottle/rethinkdb,jesseditson/rethinkdb,sontek/rethinkdb,mbroadst/rethinkdb,robertjpayne/rethinkdb,wojons/rethinkdb,lenstr/rethinkdb,greyhwndz/rethinkdb,jfriedly/rethinkdb,yaolinz/rethinkdb,rrampage/rethinkdb,tempbottle/rethinkdb,matthaywardwebdesign/rethinkdb,robertjpayne/rethinkdb,gavioto/rethinkdb,mbroadst/rethinkdb,urandu/rethinkdb,4talesa/rethinkdb,mbroadst/rethinkdb,bpradipt/rethinkdb,captainpete/rethinkdb,marshall007/rethinkdb,tempbottle/rethinkdb,wojons/rethinkdb,Wilbeibi/rethinkdb,KSanthanam/rethinkdb,gdi2290/rethinkdb,sontek/rethinkdb,elkingtonmcb/rethinkdb,KSanthanam/rethinkdb,wkennington/rethinkdb,wojons/rethinkdb,jfriedly/rethinkdb,robertjpayne/rethinkdb,ayumilong/rethinkdb,matthaywardwebdesign/rethinkdb,alash3al/rethinkdb,AntouanK/rethinkdb,ajose01/rethinkdb,grandquista/rethinkdb,catroot/rethinkdb,greyhwndz/rethinkdb,rrampage/rethinkdb,eliangidoni/rethinkdb,JackieXie168/rethinkdb,sebadiaz/rethinkdb,wujf/rethinkdb,Qinusty/rethinkdb,RubenKelevra/rethinkdb,gdi2290/rethinkdb,elkingtonmcb/rethinkdb,wkennington/rethinkdb,gavioto/rethinkdb,scripni/rethinkdb,yaolinz/rethinkdb,alash3al/rethinkdb,spblightadv/rethinkdb,losywee/rethinkdb,greyhwndz/rethinkdb,greyhwndz/rethinkdb,niieani/rethinkdb,robertjpayne/rethinkdb,urandu/rethinkdb,Wilbeibi/rethinkdb,Qinusty/rethinkdb,captainpete/rethinkdb,spblightadv/rethinkdb,eliangidoni/rethinkdb,jfriedly/rethinkdb,mbroadst/rethinkdb,wojons/rethinkdb,nviennot/rethinkdb,JackieXie168/rethinkdb,pap/rethinkdb,Wilbeibi/rethinkdb,rrampage/rethinkdb,yaolinz/rethinkdb,eliangidoni/rethinkdb,4talesa/rethinkdb,victorbriz/rethinkdb,greyhwndz/rethinkdb,jfriedly/rethinkdb,robertjpayne/rethinkdb,bchavez/rethinkdb,sontek/rethinkdb,captainpete/rethinkdb,sebadiaz/rethinkdb,robertjpayne/rethinkdb,dparnell/rethinkdb,yakovenkodenis/rethinkdb,sbusso/rethinkdb,yaolinz/rethinkdb,JackieXie168/rethinkdb,matthaywardwebdesign/rethinkdb,dparnell/rethinkdb,wujf/rethinkdb,spblightadv/rethinkdb,losywee/rethinkdb,JackieXie168/rethinkdb,jesseditson/rethinkdb,sontek/rethinkdb,bchavez/rethinkdb,lenstr/rethinkdb,ayumilong/rethinkdb,alash3al/rethinkdb,greyhwndz/rethinkdb,yakovenkodenis/rethinkdb,mbroadst/rethinkdb,sbusso/rethinkdb,Qinusty/rethinkdb,KSanthanam/rethinkdb,mcanthony/rethinkdb,Qinusty/rethinkdb,bpradipt/rethinkdb,RubenKelevra/rethinkdb,dparnell/rethinkdb,urandu/rethinkdb,marshall007/rethinkdb,catroot/rethinkdb,AntouanK/rethinkdb,yaolinz/rethinkdb,jesseditson/rethinkdb,yakovenkodenis/rethinkdb,urandu/rethinkdb,sontek/rethinkdb,jmptrader/rethinkdb,matthaywardwebdesign/rethinkdb,elkingtonmcb/rethinkdb,mquandalle/rethinkdb,captainpete/rethinkdb,jesseditson/rethinkdb,gavioto/rethinkdb,sebadiaz/rethinkdb,lenstr/rethinkdb,rrampage/rethinkdb,mcanthony/rethinkdb,gdi2290/rethinkdb,gdi2290/rethinkdb,4talesa/rethinkdb,wojons/rethinkdb,jmptrader/rethinkdb,sebadiaz/rethinkdb,sbusso/rethinkdb,RubenKelevra/rethinkdb,niieani/rethinkdb,tempbottle/rethinkdb,Qinusty/rethinkdb,yakovenkodenis/rethinkdb,jfriedly/rethinkdb,AtnNn/rethinkdb,pap/rethinkdb,alash3al/rethinkdb,pap/rethinkdb,losywee/rethinkdb,dparnell/rethinkdb,mcanthony/rethinkdb,Wilbeibi/rethinkdb,Wilbeibi/rethinkdb,bpradipt/rethinkdb,catroot/rethinkdb,catroot/rethinkdb,grandquista/rethinkdb,captainpete/rethinkdb,KSanthanam/rethinkdb,wkennington/rethinkdb,lenstr/rethinkdb,mquandalle/rethinkdb,scripni/rethinkdb,spblightadv/rethinkdb,AntouanK/rethinkdb,elkingtonmcb/rethinkdb,mcanthony/rethinkdb,jfriedly/rethinkdb,bpradipt/rethinkdb,marshall007/rethinkdb,losywee/rethinkdb,scripni/rethinkdb,AtnNn/rethinkdb,nviennot/rethinkdb,AntouanK/rethinkdb,victorbriz/rethinkdb,rrampage/rethinkdb,pap/rethinkdb,mbroadst/rethinkdb,tempbottle/rethinkdb,mquandalle/rethinkdb,spblightadv/rethinkdb,bchavez/rethinkdb,catroot/rethinkdb,sebadiaz/rethinkdb,jesseditson/rethinkdb,mquandalle/rethinkdb,KSanthanam/rethinkdb,JackieXie168/rethinkdb,ajose01/rethinkdb,niieani/rethinkdb,gavioto/rethinkdb,ayumilong/rethinkdb,robertjpayne/rethinkdb,jmptrader/rethinkdb,RubenKelevra/rethinkdb,robertjpayne/rethinkdb,marshall007/rethinkdb,marshall007/rethinkdb,jfriedly/rethinkdb,nviennot/rethinkdb,victorbriz/rethinkdb,eliangidoni/rethinkdb,4talesa/rethinkdb,sebadiaz/rethinkdb,scripni/rethinkdb,sebadiaz/rethinkdb,AntouanK/rethinkdb,lenstr/rethinkdb,victorbriz/rethinkdb,matthaywardwebdesign/rethinkdb,niieani/rethinkdb,JackieXie168/rethinkdb,wujf/rethinkdb,ajose01/rethinkdb,mquandalle/rethinkdb,mquandalle/rethinkdb,niieani/rethinkdb,yakovenkodenis/rethinkdb,lenstr/rethinkdb,mbroadst/rethinkdb,wojons/rethinkdb,yakovenkodenis/rethinkdb,sontek/rethinkdb,ayumilong/rethinkdb,gdi2290/rethinkdb,ajose01/rethinkdb,wkennington/rethinkdb,jmptrader/rethinkdb,4talesa/rethinkdb,ajose01/rethinkdb,mbroadst/rethinkdb,dparnell/rethinkdb,wujf/rethinkdb,pap/rethinkdb,pap/rethinkdb,victorbriz/rethinkdb,sbusso/rethinkdb,AtnNn/rethinkdb,ayumilong/rethinkdb,ayumilong/rethinkdb,grandquista/rethinkdb,AtnNn/rethinkdb,captainpete/rethinkdb,4talesa/rethinkdb,JackieXie168/rethinkdb,victorbriz/rethinkdb,sbusso/rethinkdb,eliangidoni/rethinkdb,nviennot/rethinkdb,JackieXie168/rethinkdb,ayumilong/rethinkdb,elkingtonmcb/rethinkdb,rrampage/rethinkdb,wujf/rethinkdb,Qinusty/rethinkdb,spblightadv/rethinkdb,yaolinz/rethinkdb,sbusso/rethinkdb,bpradipt/rethinkdb,4talesa/rethinkdb,yakovenkodenis/rethinkdb,greyhwndz/rethinkdb,pap/rethinkdb,mcanthony/rethinkdb,alash3al/rethinkdb,Wilbeibi/rethinkdb,mcanthony/rethinkdb,bpradipt/rethinkdb,jesseditson/rethinkdb,Qinusty/rethinkdb,alash3al/rethinkdb,dparnell/rethinkdb,dparnell/rethinkdb,marshall007/rethinkdb,grandquista/rethinkdb,JackieXie168/rethinkdb,mquandalle/rethinkdb