its against the law for unlawful search didnt have probable cause to search your car without a warrant, Unless you gave them permission to do so… and technically you were under arrest any stop by a police officer is called an arrest even just for a traffic violation. once they take your freedom from you its an arrest. I would file a compaint with the cheektawaga police department.