first version of head detection based on histogram of depth values