Fixed a bug with delete_min

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>